<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>意见反馈</title>
		<script src="__JS__/mui.min.js"></script>
		<link href="__CSS__/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__CSS__/iconfont.css" />
		<link rel="stylesheet" href="__CSS__/style.css" />
		<link rel="stylesheet" href="__CSS__/mall.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-icon mui-icon-left-nav mui-pull-left" href="JavaScript:history.go(-1)"></a>
			<h1 class="mui-title">意见反馈</h1>
		</header>
		<div class="mui-content yjfk_con">
			<form id="myForm" class="yjfk">
				<div class="bt">请选择要反馈的类型</div>
				<ul class="mui-table-view mui-table-view-radio">
					<li class="mui-table-view-cell mui-selected">
						<label><input name="pid" type="radio" value="1" checked / style="margin-right: 20px;">功能异常 </label>
					</li>
					<li class="mui-table-view-cell">
						<label><input name="pid" type="radio" value="2"/ style="margin-right: 20px;">意见改进 </label>
					</li>
					<li class="mui-table-view-cell">
						<label><input name="pid" type="radio" value="3"/ style="margin-right: 20px;">其他问题 </label>
					</li>
				</ul>
				<div class="bt fk_bt">请填写反馈内容</div>
				<div class="yjfk_nr"><textarea id="text" name="content" cols="70" rows="4" placeholder="请描述您在使用的时候遇到的问题和意见"></textarea></div>
				<button type="submit" class="fjysq_sbtn">提交</button>
			</form>
		</div>
	</body>

</html>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/jquery.validate.min.js"></script>
<script src="__JS__/mui.min.js"></script>
<script src="__LIB__/layer.js"></script>
<script src="__JS__/index.js"></script>
<script type="text/javascript">
	$(function() {
		$("#myForm").validate({
			debug: false, //调试模式取消submit的默认提交功能   
			errorClass: "form-error", //默认为错误的样式类为：error   
			focusInvalid: true, //当为false时，验证无效时，没有焦点响应  
			onkeyup: false,
			submitHandler: function(form) { //表单提交句柄,为一回调函数，带一个参数：form   
				// ajax提交
				app.ajax(window.location.href, true);
			},
			rules: {
				content: {
					required: true
				}
			},
			messages: {
				content: {
					required: "请描述问题和意见 "
				}
			}

		});
	});
</script>